package exam6;

/**
 * @author HB
 * @version 1.0
 * @description
 * @date 2021/6/24
 */
public class CipherAdapter extends DataOperator{
    private Caesar cipher;

    public CipherAdapter() {
        cipher = new Caesar();
    }

    @Override
    public String doEncrypt(int key, String ps) {
        return cipher.doEncrypt(key, ps);
    }
}
